using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace MyPhotoIndex.Controls
{
    public class MyPhotoIndexTabControl : TabControl
    {
        public MyPhotoIndexTabControl()
        {
            this.DrawMode = TabDrawMode.OwnerDrawFixed;
        }

        protected override void OnPaint(PaintEventArgs e)
        {
            OnPaintBackground(e);
        }

        protected override void OnPaintBackground(PaintEventArgs pevent)
        {
            pevent.Graphics.Clear(Color.White);
            //Color firstColor = Skiner.Default.BackColorGradiantColor1;
            //Color secondColor = Skiner.Default.BackColorGradiantColor2;

            //Rectangle drawRect = this.ClientRectangle;
            //using (LinearGradientBrush oBrush = new LinearGradientBrush(drawRect,
            //            firstColor, secondColor, LinearGradientMode.Vertical))
            //{
            //    pevent.Graphics.FillRectangle(oBrush, drawRect);
            //}
        }
    }
}
